package com.qf.weekwork.service;

import com.github.pagehelper.PageInfo;
import com.qf.weekwork.entity.AdminUser;
import com.qf.weekwork.vo.PageVo;

public interface UserService {

    /**
     * 通过email查找到对应的用户
     * @param name
     * @return
     */
    public AdminUser selectAdminUserByName(String name);

    /**
     * 查找有对应条件的用户的集合
     * @param adminUser
     * @return
     */
    public PageInfo<AdminUser> selectAll(PageVo pageVo, AdminUser adminUser);

    /**
     * 实现添加逻辑
     * @param adminUser
     * @return
     */
    public Boolean add(AdminUser adminUser);

    /**
     * 删除逻辑
     * @param ids
     * @return
     */
    public Boolean del(Integer[] ids);


    /**
     * 修改用户信息
     * @param adminUser
     * @return
     */
    public Boolean update (AdminUser adminUser);

}
